import Vue from 'vue';
import Vuex from 'vuex';
import middlewares from './middlewares';
import app from './modules/app';
import msg from './modules/msg';
import order from './modules/order';



const debug = process.env.NODE_ENV !== 'production'
Vue.use(Vuex)
Vue.config.debug = debug
Vue.config.warnExpressionErrors = false

export default new Vuex.Store({
  modules: {
    app,
    msg,
    order
  },
  strict: debug,
  middlewares
})
